﻿using EasyAdmin.Domain.Entities.Systems;
using EasyAdmin.Domain.Shared.Enums;
using EasyCore.ObjectMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyAdmin.Application.Contracts.Systems.Menus.Dtos
{
    [MapFrom(typeof(SysMenu))]
    public class UserMenuOutput
    {        
        public long MenuId { get; set; }
        public long ParentMenuId { get; set; }
        public string Title { get; set; }
        public string RoutePath { get; set; }
        public string ComponentPath { get; set; }
        public MenuType MenuType { get; set; }
        public string Icon { get; set; }
        public bool IsShow { get; set; }
        public bool IsHome { get; set; }
        public bool IsDisabled { get; set; }
        public List<long> Operations { get; set; }

        public List<UserMenuOutput> Children { get; set; }

    }
}
